/******************************************************************************************
 * Import
 ******************************************************************************************/

// module
import React, {Component} from 'react';
import {View} from 'react-native';

// project
import { TouchOpacity, ItemX, Footer, Image, Text, Hand } from '../../../library';

/******************************************************************************************
 * Export Class
 ******************************************************************************************/

export default class Finish extends Component {

	constructor(props) {
		super(props);

		/**
		 * state
		 */
		this.state = {

        }
	}

	/**
	 * 渲染
	 */
	render() {
        // 制作样式
		const subonPress = this.props.subonPress? this.props.subonPress:{};

		// 渲染
		return (
			<Footer x='center' h='60' bg='#fbfbfb' bt='1 #f2f2f2' y='center' bg='#cbb383' onPress={
				()=>{subonPress}
			}>
                <TouchOpacity active='0.7' f='1'>
                    <Text style={{textAlign:'center'}} color='#fff' size='18'>{this.props.text ? this.props.text : '完成'}</Text>
                </TouchOpacity>
			</Footer>
		);
	}
}
